Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report error for native PDB limit #75293

Merged
merged 4 commits into from
Oct 7, 2024
Merged

Conversation

jjonescz
Copy link
Member

Resolves #75237.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Sep 30, 2024
@jjonescz jjonescz marked this pull request as ready for review September 30, 2024 16:39
@jjonescz jjonescz requested a review from a team as a code owner September 30, 2024 16:39
methodBody.MethodDefinition,
blob.Length,
limit));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: the name of the attribute is part of the limit length. Is that included in the blob?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the name is not included in the blob. You are right the limit is wrong now, will fix.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you put the check here vs. inside DefineCustomMetadata? Yes this is the only call today but in the future if we added more calls we wouldn't get this protection.

Copy link
Member Author

@jjonescz jjonescz Oct 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, it seems better to move the check into DefineCustomMetadata. I originally chose this location because it's where I have access to the method name, but I can probably pass that down or rethrow an exception...

Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done with review pass (iteration 1). Only minor questions

@jcouv jcouv self-assigned this Sep 30, 2024
Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks (iteration 2) with a minor comment suggestion

@jjonescz jjonescz requested a review from jaredpar October 2, 2024 08:39
@jjonescz
Copy link
Member Author

jjonescz commented Oct 4, 2024

@dotnet/roslyn-compiler @jaredpar for a second review, thanks

@jjonescz jjonescz merged commit 405a8fa into dotnet:main Oct 7, 2024
28 checks passed
@jjonescz jjonescz deleted the 75237-NativePdbOom branch October 7, 2024 08:24
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Oct 7, 2024
@akhera99 akhera99 modified the milestones: Next, 17.13 P1 Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler should error when it hits native PDB writer limits
4 participants